access activity method from adapter

58

access activity method from adapter -

if (mContext instanceof YourActivityName) {
	((YourActivityName)mContext).yourDesiredMethod();
    

call activity method from adapter -

if (mContext instanceof YourActivityName) {
  ((YourActivityName)mContext).yourDesiredMethod();
}

Comments

Submit
0 Comments